﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Tssipl.PaymentAdapter.Core;
using Tssipl.PaymentAdapter.MessageFormat.Sfms;
namespace Tssipl.PaymentAdapter.MessageEntity.Sfms.Neft
{

    public class NeftEndOfDayEndOfBatch : Tssipl.PaymentAdapter.MessageEntity.Sfms.SfmsMessageEntityBase
    {
        public string TransactionDate { get; set; }//8!n  //M
        public string BatchTime { get; set; }        //4!n   
        public string NoOfOutwardDebitTxnsAtNeftOrSc { get; set; }        //8n //M
        public string TotalAmtOfOutwardDebitTxnsAtNeftOrSc { get; set; }//19d  //M
        public string NoOfOutwardDebitTxnsAcceptedAtNeftOrSc { get; set; }//8n  //M
        public string SumAmtOfOutwardDebitTxnsAcceptedAtNeftOrSc { get; set; }//19d  //M
        public string NoOfOutwardDebitTxnsRejectedAtNeftOrSc { get; set; }//8n  //M
        public string SumAmtOfOutwardDebitTxnsRejectedAtNeftOrSc { get; set; }//19d  //M
        public string NoOfInwardCreditsReceivedForTheBankOrBranch { get; set; }//8n  //M
        public string SumAmtOfTheInwardCreditsReceived { get; set; }//19d  //M
        public string NoOfReturnTxnsReceivedForTheBankOrBranch { get; set; }//8n  //M
        public string SumAmtOfTheReturnTxnsReceived { get; set; }//19d  //M

        public NeftEndOfDayEndOfBatch(MessageParseResults results)
            : base(results)
        {
            SfmsMessage message = (SfmsMessage)results.getMessage();
            SfmsBlock4 block4 = message.getBlock4();

            this.TransactionDate = block4.getField("3385");
            this.BatchTime = block4.getField("3535");
            this.NoOfOutwardDebitTxnsAtNeftOrSc = block4.getField("5175");
            this.TotalAmtOfOutwardDebitTxnsAtNeftOrSc = block4.getField("4105");
            this.NoOfOutwardDebitTxnsAcceptedAtNeftOrSc = block4.getField("5180");
            this.SumAmtOfOutwardDebitTxnsAcceptedAtNeftOrSc = block4.getField("4110");
            this.NoOfOutwardDebitTxnsRejectedAtNeftOrSc = block4.getField("5185");
            this.SumAmtOfOutwardDebitTxnsRejectedAtNeftOrSc = block4.getField("4115");
            this.NoOfInwardCreditsReceivedForTheBankOrBranch = block4.getField("5267");
            this.SumAmtOfTheInwardCreditsReceived = block4.getField("4410");
            this.NoOfReturnTxnsReceivedForTheBankOrBranch = block4.getField("5047");
            this.SumAmtOfTheReturnTxnsReceived = block4.getField("4460");
        }
    }
}
